import request from '@/utils/request'

// 企业入驻审核列表
export function getEnterList(data = {}) {
  return request.post('/approve/enterprise/page', data)
}

// 企业入驻审核-通过
export function approveEnter(params = {}) {
  return request.get('/approve/enterprise/approve', { params })
}

// 企业入驻审核-拒绝
export function rejectEnter(data = {}) {
  return request.post('/approve/enterprise/reject', data)
}

// 企业入驻审核-审核详情
export function getEnterDetail(params) {
  return request.get('/approve/enterprise/detail', { params })
}

// 企业入驻审核-分佣参数设置
export function setCommission(data = {}) {
  return request.post('/approve/enterprise/commission', data)
}

// 店铺装修-审核列表
export function getShopList(data = {}) {
  return request.post('/approve/shop/page', data)
}

// 店铺装修-审核详情
export function getShopDetail(params = {}) {
  return request.get('/approve/shop/detail', { params })
}

// 店铺装修-审核通过
export function approveShop(params = {}) {
  return request.get('/approve/shop/approve', { params })
}

// 店铺装修-审核拒绝
export function rejectShop(data = {}) {
  return request.post('/approve/shop/reject', data)
}

// 产品-审核列表
export function getProductList(data = {}) {
  return request.post('/approve/product/page', data)
}

// 产品-审核详情
export function getProductDetail(params = {}) {
  return request.get('/approve/product/detail', { params })
}

// 产品-审核通过
export function approveProduct(params = {}) {
  return request.get('/approve/product/approve', { params })
}

// 产品-审核拒绝
export function rejectProduct(data = {}) {
  return request.post('/approve/product/reject', data)
}

// 套票-审核列表
export function getTicketList(data = {}) {
  return request.post('/approve/packageTicket/page', data)
}

// 套票-审核详情
export function getTicketDetail(params = {}) {
  return request.get('/approve/packageTicket/detail', { params })
}

// 套票-审核通过
export function approveTicket(params = {}) {
  return request.get('/approve/packageTicket/approve', { params })
}

// 套票-审核通过
export function rejectTicket(data = {}) {
  return request.post('/approve/packageTicket/reject', data)
}

// 套票-修改状态
export function editStatus(data = {}) {
  return request.post('/approve/editStatus', data)
}
